package com.wanxi.management;

import java.io.*;
import java.util.Properties;

public class Test {
    public static void main(String[] args) throws IOException {

//        Properties properties = new Properties();
//
//        int sid = 201050;
//        String name = "陈";
//        int age = 28;
//        String birthday ="194.5" ;
//        Student addStudent = new Student(sid, name, age, birthday);
//
//        int sid1 = 201050;
//        String name1 = "都可能受到";
//        int age1 = 28;
//        String birthday1 ="1.5" ;
//        Student addStudent1 = new Student(sid1, name1, age1, birthday1);
//
//
//
//        properties.setProperty(addStudent.getName(),addStudent.getInfo());
//        properties.setProperty(addStudent1.getName(), addStudent1.getInfo());
//        properties.setProperty(addStudent1.getName(), addStudent1.getInfo());
//
//
//        properties.setProperty(addStudent.getName(),addStudent.getInfo());
//        properties.setProperty(addStudent1.getName(), addStudent1.getInfo());
//        properties.setProperty(addStudent1.getName(), addStudent1.getInfo());
//
//
//
//        File file = new File("student.properties");
////        FileOutputStream fileOutputStream = new FileOutputStream(file);
////        properties.store(fileOutputStream,"shudsbus");
//
//        FileWriter fileWriter = new FileWriter(file,true);
//
//
//        properties.store(fileWriter,"student information");
//
//        System.out.println(properties);




        File file = new File("student.properties");
//        FileInputStream fileInputStream = new FileInputStream(file);
        FileReader fileReader = new FileReader(file);

        Properties properties = new Properties();
        properties.load(fileReader);
        System.out.println(properties);


















    }
}
